package com.atguigu.guli.service.vod;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
//那就是Mybatis本生就是用来管理数据源的一个东西，
// exclude = DataSourceAutoConfiguration.class加上后，mybatis的自动装配就没法完成，所以就报错：
//Caused by: java.lang.IllegalArgumentException: Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required
//这个意思是不知道你使用的是sqlSessionFactory 还是sqlSessionTemplate
//@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)//取消数据源自动配置
@SpringBootApplication
@ComponentScan(basePackages = {"com.atguigu.guli"})
@EnableDiscoveryClient
public class ServiceVodApplication {
    public static void main(String[] args) {
        SpringApplication.run(ServiceVodApplication.class, args);
    }
}